const user = {
    state: {
        current: 'register',
    },
    mutations: {
        setPage(state, current) {
            debugger;
            state.current = current;
        },
    },
    actions: {
        setPage({ commit, state }, current) {
            commit('setPage', current);
        },
        
    },
    getters: {
        page(state) {
            return state.current;
        },
    }
};

export default user;
